package me.qi.kancha.dto.core;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import me.qi.kancha.dto.base.BaseDTO;
import me.qi.kancha.dto.enums.BranchType;

import java.io.Serializable;

/**
 * 分支机构
 * @author qi
 * @date 2022-10-27 04:07:06
 * @TableName branch
 */
@TableName(value ="branch")
@Data
public class BranchDTO extends BaseDTO implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 删除标记
     */
    @TableField(value = "deleted", fill = FieldFill.INSERT) //逻辑删除
    @TableLogic(value = "0", delval = "1") //逻辑删除
    // @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 简介
     */
    @TableField(value = "info")
    private String info;

    /**
     * 联系方式（名字:联系方式;......）最多三个
     */
    @TableField(value = "contact")
    private String contact;

    private BranchType type;

    @TableField(value = "cert")
    private String cert;

    /**
     * 联系人
     */
    @TableField(value = "contact_name")
    private String contactName;

    /**
     * 电话
     */
    @TableField(value = "phone")
    private String phone;

    /**
     * 地址
     */
    @TableField(value = "address")
    private String address;

    /**
     * 电子邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 网站
     */
    @TableField(value = "website")
    private String website;

}